﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.OpenAuth.DTO.Common
{
    /// <summary>
    /// Current login user.
    /// </summary>
    public class CurrentUser
    {
        public CurrentUser()
        {
            this.LoginTime = DateTime.Now;
        }
        public CurrentUser(string userName,string password)
            :this()
        { }

        public int Id { get; set; }
        public string Name { get; set; }
        public string Account { get; set; }

        public string Code { get; set; }

        //public string Password { get; set; }

        //[DataType(DataType.EmailAddress)]
        //[Display(Name = "E-mail")]
        //public string Email { get; set; }
        public DateTime? LoginTime { get; set; }
    }
}
